import 'package:flutter/material.dart';
import 'package:get/get.dart';

/// 第一次欢迎页面
class RouteWelcomeMiddleware extends GetMiddleware {
  // priority 数字小优先级高
  // @override
  // int? priority = 0;
  // RouteWelcomeMiddleware({
  //   required super.priority,
  // });

  @override
  RouteSettings? redirect(String? route) {
    return null;

    // if (ConfigStore.to.isFirstOpen == true) {
    //   return null;
    // } else if (UserStore.to.isLogin == true) {
    //   return const RouteSettings(name: AppRoutes.Application);
    // } else {
    //   return const RouteSettings(name: AppRoutes.SIGN_IN);
    // }
  }
}
